<template>
  <page-main>
      <div class="page-module">
        <van-form >
            <search-list title="标题名称" :value.sync="form.id" :list="init_data.popup_list" />
        </van-form>      
        <van-button type="primary" block @click="submit">提交</van-button>      
      </div>
  </page-main>
</template>

<script>
import searchList from '@/components/searchList';
export default {
    data(){
        return{
            form:{
                id: 1,
            },
            init_data:{
                popup_list:[],
            }
        }
    },
    components:{
        searchList
    },
    created(){
        this.getInitData();
    },
    methods:{
        getInitData(){
            setTimeout(()=>{
                this.init_data.popup_list = [
                    {id: 1,name: '选项1'},
                    {id: 2,name: '选项2'},
                ]
            },1000);
        },
        submit(){
            console.log(this.form.id);
        }

    }
}
</script>

<style>

</style>    